﻿using GetSmartIDEList.Core.Ulities;

namespace GetSmartIDEList.WebAPI.Models
{
    public class AuthToken
    {
        public string grant_type { get; } = "password";
        public string username { get; } = AppConfigurtaionServices.Configuration.GetSection("ReposInf").GetSection("authorUserid").Value.ToString();
        public string password { get; } = AppConfigurtaionServices.Configuration.GetSection("ReposInf").GetSection("authorPwd").Value.ToString();
        public string client_id { get; } = AppConfigurtaionServices.Configuration.GetSection("ReposInf").GetSection("clientId").Value.ToString();
        public string client_secret { get; } = AppConfigurtaionServices.Configuration.GetSection("ReposInf").GetSection("clientSecret").Value.ToString();

        public string scope { get; } = "projects user_info issues notes";
    }
}
